package designPattern.AdapterPattern1;

/**
 * @author jiangwz
 * @create 2019/11/12.
 */
public class SDAdapterTF implements SDCard {

    private TFCard tfCard;

    public SDAdapterTF(TFCard tfCard) {
        this.tfCard = tfCard;
    }

    @Override
    public String readSD() {
        return tfCard.readTF();
    }

    @Override
    public int writeSD(String msg) {
        System.out.println("adapter tf card write : "+ msg);
        return 0;
    }
}
